package com.zhongli.devplatform.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 性别枚举
 * @author WuXiCheng
 * @version 1.0
 * @date: 2020/7/23 13:13
 */
@Getter
public enum SexType{

    Secrecy(0,"保密"),        // 保密

    Male(1,"男"),           // 男

    Female(2,"女");         // 女

    @EnumValue
    private int code;

    @JsonValue
    private  String message;

    SexType(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
